//---------------------------------------------------------------------------

#ifndef mainH
#define mainH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ComCtrls.hpp>
#include <ExtCtrls.hpp>
#include <Dialogs.hpp>
#include <ExtDlgs.hpp>
#include <ImgList.hpp>
#include <pngimage.hpp>
#include <Menus.hpp>
#include <FileCtrl.hpp>
#include "xmlwrapper.h"
#include <XPMan.hpp>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published:	// IDE-verwaltete Komponenten
	TComboBox *CBResolution;
	TPageControl *PageControl1;
	TTabSheet *TSBackgroundImage;
	TLabel *LBackgroundImageHelp;
	TLabel *LBackgroundImageSelectBGImage;
	TEdit *EBackgroundImageSelectImagePath;
	TButton *BBackgroundImageSelectImage;
	TTabSheet *TSIcons;
	TOpenDialog *OpenPictureSelectBackgroundImage;
	TButton *BMainSave;
	TMainMenu *MainMenu1;
	TMenuItem *Bearbeiten1;
	TMenuItem *Objekt1;
	TMenuItem *Verknpfungen1;
	TMenuItem *N1;
	TMenuItem *Gehezu1;
	TMenuItem *Ersetzen1;
	TMenuItem *Suchen1;
	TMenuItem *N2;
	TMenuItem *Inhalteeinfgen1;
	TMenuItem *Einfgen1;
	TMenuItem *Kopieren1;
	TMenuItem *Ausschneiden1;
	TMenuItem *N3;
	TMenuItem *WiederholenBefehl1;
	TMenuItem *Rckgngig1;
	TMenuItem *Datei1;
	TMenuItem *Beenden1;
	TMenuItem *N4;
	TMenuItem *ffnen1;
	TMenuItem *Hilfe1;
	TMenuItem *Info1;
	TMenuItem *Hilfebenutzen1;
	TMenuItem *Suchen2;
	TMenuItem *Inhalt1;
	TListBox *LBIApplications;
	TImage *IIconsDesktopBG;
	TTabSheet *TSAddApplication;
	TLabel *LAppsAppPath;
	TEdit *EAppsPath;
	TButton *Laden;
	TOpenDialog *ODAppPath;
	TButton *BAppsDirView;
	TLabel *LAppsAppPathCurrentCaption;
	TButton *BSetStaticIconCoordinates;
	TEdit *ESetFactorX;
	TEdit *ESetFactoY;
	TLabel *LSetFactorX;
	TLabel *LSetFactorY;
	TButton *Button1;
	TGroupBox *GroupBox1;
	TLabel *LAppsAppPathCurrent;
	TLabel *LAppsStatus;
	TListBox *LBAppsAppList;
	TLabel *LAppsAppListCaption;
	TShape *SRecycler;
	TLabel *LDeleteIcon;
	TLabel *LMainUserName;
	TEdit *EMainUserName;
	TLabel *Label1;
	TEdit *EMainPassword;
	TMenuItem *Speichern;
	TOpenDialog *ODOpenConfig;
	TCheckBox *CHBSetOwn;
	TXPManifest *XPManifest1;
	void __fastcall BBackgroundImageSelectImageClick(TObject *Sender);
	void __fastcall Panel1DragDrop(TObject *Sender, TObject *Source, int X, int Y);
	void __fastcall Panel1DragOver(TObject *Sender, TObject *Source, int X, int Y, TDragState State,
          bool &Accept);
	void __fastcall BAppsDirViewClick(TObject *Sender);
	void __fastcall IIconsDesktopBGDragDrop(TObject *Sender, TObject *Source, int X,
          int Y);
	void __fastcall IIconsDesktopBGDragOver(TObject *Sender, TObject *Source, int X,
          int Y, TDragState State, bool &Accept);
	void __fastcall LBIApplicationsStartDrag(TObject *Sender, TDragObject *&DragObject);
	void __fastcall IIconsDesktopBGMouseMove(TObject *Sender, TShiftState Shift, int X,
          int Y);
	void __fastcall PageControl1Change(TObject *Sender);
	void __fastcall LadenClick(TObject *Sender);
	void __fastcall BSetStaticIconCoordinatesClick(TObject *Sender);
	void __fastcall Button1Click(TObject *Sender);
	void __fastcall LBIApplicationsClick(TObject *Sender);
	void __fastcall SRecyclerDragOver(TObject *Sender, TObject *Source, int X, int Y,
          TDragState State, bool &Accept);
	void __fastcall TSIconsDragOver(TObject *Sender, TObject *Source, int X, int Y,
          TDragState State, bool &Accept);
	void __fastcall SRecyclerDragDrop(TObject *Sender, TObject *Source, int X, int Y);
	void __fastcall BMainSaveClick(TObject *Sender);
	void __fastcall Beenden1Click(TObject *Sender);
	void __fastcall ffnen1Click(TObject *Sender);
	void __fastcall CHBSetOwnClick(TObject *Sender);


	/*void __fastcall lboxTargetDragOver(TObject *Sender, TObject *Source, int X, int Y,
		  TDragState State, bool &Accept);
	void __fastcall lboxTargetDragDrop(TObject *Sender, TObject *Source, int X, int Y);
	void __fastcall lboxTargetStartDrag(TObject *Sender, TDragObject *&DragObject);
      */


private:	// Benutzer Deklarationen
	XMLWrapper *configFile;
	String bgImage;
public:		// Benutzer Deklarationen
	__fastcall TForm1(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif
